<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>

<head>
    <base href="<%=basePath%>"/>
    <title>襄阳蓝芯智能化办公系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="view/bootstrap-3.3.5/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="view/bootstrapvalidator/css/bootstrapValidator.css" />
    <script charset="utf-8" src="view/jquery/jquery-1.10.2.min.js"></script>
    <script charset="utf-8" src="view/bootstrap-3.3.5/js/bootstrap.js"></script>
    <script charset="utf-8" src="view/bootstrapvalidator/js/bootstrapValidator.js"></script>
</head>
<style>
    /*定义类名为.thead-blue的样式*/
    .thead-blue {
        color: #fff;
        font-weight: bold;
        background-color: #337ab7;
    }
</style>
<body>

<div class="panel panel-primary">
    <table class="table table-bordered table-hover">
        <thead>
        <tr class="thead-blue">
            <td colspan="2">短消息详情</td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td class="col-md-1">
                <label>消息主题</label>
            </td>
            <td class="col-md-10">
                ${xxjs.duanxiaoxi.biaoti}
            </td>
        </tr>
        <tr>
            <td><label>发送人</label></td>
            <td>${xxjs.duanxiaoxi.emp.empName}</td>
        </tr>
        <tr>
            <td><label>接收人</label></td>
            <td>
                <span class="text-success">${xxjs.employee.empName}</span>
            </td>
        </tr>
        <tr>
            <td><label>发送时间</label></td>
            <td>
                ${xxjs.duanxiaoxi.createDate}
            </td>
        </tr>
        <tr>
            <td><label>接收时间</label></td>
            <td>
                ${xxjs.yuedushijian}
            </td>
        </tr>
        <tr>
            <td><label>消息内容</label></td>
            <td>${xxjs.duanxiaoxi.neirong}</td>
        </tr>
        <tr>
            <td><label>消息附件</label></td>
            <td>
                <c:if test="${!empty xxjs.duanxiaoxi.files}">
                    <button type="button"><a href="duanxiaoxi/xiazai?fileName=${xxjs.duanxiaoxi.files}">${xxjs.duanxiaoxi.files}</a></button>
                </c:if>
            </a></td>
        </tr>

        <tr>
            <td colspan="6" align="center">
                <a type="button" href="javascript:location.href=document.referrer;" class="btn btn-info">返回</a></td>
        </tr>
        </tbody>
    </table>
</div>

</body>
</html>
